const kshPublicBicycleDataApi = {}

import http from '@/plugin/axios'
import {viewApi} from '@/config/env'

/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 09:24:49
 * @Description 获取自行车基础数据
 */
kshPublicBicycleDataApi.getBasicInformation = () => {
  return http.$GET(`/${viewApi}/kshPublicBicycleData/getBasicInformation`)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 11:37:00
 * @Description 获取注册交易信息数据
 */
kshPublicBicycleDataApi.getWechatData = () => {
  return http.$GET(`/${viewApi}/kshPublicBicycleData/getWechatData`)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 13:34:46
 * @Description 获取还车TOP7数据
 */
kshPublicBicycleDataApi.selectTopBikeHire = (obj) => {
  return http.$POST(`/${viewApi}/kshPublicBicycleData/selectTopBikeHire`, obj)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 13:34:46
 * @Description 获取租车TOP7数据
 */
kshPublicBicycleDataApi.selectTopBikeRental = (obj) => {
  return http.$POST(`/${viewApi}/kshPublicBicycleData/selectTopBikeRental`, obj)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 13:34:46
 * @Description 获取租车时段统计数据
 */
kshPublicBicycleDataApi.selectRentalBikeByTime = (obj) => {
  return http.$POST(`/${viewApi}/kshPublicBicycleData/selectRentalBikeByTime`, obj)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 15:57:41
 * @Description 获取top7站点数据 names
 */
kshPublicBicycleDataApi.selectStationDetail = (str) => {
  return http.$GET(`/${viewApi}/kshPublicBicycleData/selectStationDetail?names=${str}`)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 16:34:32
 * @Description 自行车日月数据
 */
kshPublicBicycleDataApi.selectBikeHireAnalysis = (type) => {
  return http.$GET(`/${viewApi}/kshPublicBicycleData/selectBikeHireAnalysis?type=${type}`)
}
export default kshPublicBicycleDataApi
